package Eyjafjalla.action;

import Eyjafjalla.helper.StringHelper;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.vfx.cardManip.ExhaustCardEffect;

public class CloudReflectionAction extends AbstractGameAction {
    public CloudReflectionAction(boolean upgrade){
        this.upgrade = upgrade;
    }

    @Override
    public void update() {
        AbstractCard tmp = AbstractDungeon.returnTrulyRandomCardInCombat().makeCopy();
        StringHelper.addProject(tmp);
        if(upgrade&&tmp.cost>=0){
            tmp.updateCost(-1);
        }
        addToTop(new MakeTempCardInCloudAction(tmp));
        this.isDone = true;
    }

    boolean upgrade;
}
